package com.yunwushanhe.controller;



import com.yunwushanhe.bean.ret.ResponseResult;
import com.yunwushanhe.bean.vo.CategoryVO;
import com.yunwushanhe.service.CategoryService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;

/**
 * 分类表(Category)表控制层
 *
 * @author 抬头看看天
 * @since 2023-08-05 10:50:16
 */
@RestController
@RequestMapping("/category")
public class CategoryController {

    @Resource
    private CategoryService categoryService;

    @GetMapping("/getCategoryList")
    public ResponseResult<List<CategoryVO>> getCategoryList(){
        return categoryService.getCategoryList();
    }
}

